<?php

namespace addons\ymygooglemap\controller;

use think\addons\Controller;

class Index extends Controller
{

    public function index()
    {
        $this->error("当前插件暂无前台页面");
    }


    public function select(){
        $config = get_addon_config('ymygooglemap');
        $config['lat'] = $this->request->get('lat', $config['lat']);
        $config['lng'] = $this->request->get('lng', $config['lng']);
        $this->view->assign('config', $config);
        return $this->view->fetch('index/google');
    }
}
